package java4;

import java.util.Scanner;

public class Code048 {
	public static void main(String[] args) {
		System.out.println("请输入一个年份:");
		Scanner input = new Scanner(System.in);
		int year = input.nextInt();
		int a;
		int b;
		int c;
		a = (int)year%4;
		b = (int)year%100;
		c = (int)year%400;
		if(a==0&&b!=0||c==0){
			System.out.println("该年是闰年！");
		}
		else{
			System.out.println("该年不是闰年！");
		}
	}

}
